<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>铁航商旅网</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
	</head>

	<body class="content1">							
	<div class="row-fluid">
	    
		<div class="span4"  >
		  	<img alt="" src="images/logo.jpg"  style="padding-left: 86px; border-top-width: 0px; padding-top: 13px; margin-left: 72px;">
		</div>
		<div class="span4">
			<img alt="" src="images/tel.jpg"   style="padding-left: 733px; padding-top: 23px; padding-right: 0px;">
		</div>
		<div class="span4"  >
		  		<ul class="nav pull-right">
					<li id="fat-menu" class="dropdown">
						<a href="#" role="button" class="dropdown-toggle"
							data-toggle="dropdown"> <i class="icon-user"></i>
							 ${account.accountname}(${name2})<i class="icon-caret-down"></i>
						</a>
					</li>
					<li>
						<a href="logout" class="dropdown-toggle"
							data-toggle="dropdown">注销
						</a>
					</li>
				</ul>
		</div>
    </div>
    <div class="row-fluid">
		<div class="span12"   style="padding-left: 149px;">
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="">首页</a>
				</li>
				<li class="disabled">
					<a href="account?accountname=${account.accountname}">个人信息</a>
				</li>
			</ul>
			<div class="span12" >
				<div class="carousel-inner">
					<div class="item">
						<img alt="" src="images/2.jpg" />
					</div>
			   </div>
		   </div>
		</div>
			<form class="form-search form-inline"  method="post"  action="toproductsearch">
			    <input class="input-medium search-query" type="text"  name="productname" style="padding-left: 20px; border-left-width: 1px; margin-left: 162px; padding-top: 1px; border-top-width: 1px; margin-top: 57px; margin-bottom: -2px; border-bottom-width: 1px;" 6> 
			    	<button type="submit" class="btn"   style="margin-top: 57px;">查找</button>
			</form>
	<div class="span8"  style="margin-left: 140px;" >	
			<table class="table">
				<thead>
					<tr>
						        <th>
									产品名称
								</th>
								<th>
									票价
								</th>
								<th>
									票数
								</th>
								<th>
									出发地
								</th>
								<th>
									目的地
								</th>
								<th>
									出发时间
								</th>
								<th>
									到达时间
								</th>
								<th>
									航班状态
								</th>
								
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${pi1}" var="item">
								<tr class="info">
									<td>
										${item.productname}
									</td>
									<td>
										${item.productprice}
									</td>
									<td>
										${item.productnum}
									</td>
									<td>
										${item.productgo}
									</td>
									<td>
										${item.productdown} 
									</td>
									<td>
										<fmt:formatDate value="${item.producttimego}"/>
									</td>
									<td>
										<fmt:formatDate value="${item.producttimedown}"/>
									</td>
									<td>
										<c:choose>
											<c:when test="${item.productstate==\"1\"}">
												待机		
											</c:when>
											<c:otherwise>起飞</c:otherwise>
										</c:choose>
									</td>
									<%-- <td>
										<a href="<%=basePath%>cartlist?productid=${item.productid}">预订</a>
									</td> --%>
								</tr>
							</c:forEach>
				</tbody>
			</table>
			</div>
			<div class="span4" >
				
			</div>
		</div>
	</body>
</html>
